package com.tport;

import org.apache.log4j.Logger;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:日志控制类
 * </p>
 * <p>
 * Copyright: Copyright (c) 2013
 * </p>
 * <p>
 * Company: 
 * </p>
 * 
 * @author not attributable
 * @version 4.0
 */

public class LogUtil {
	// 日志名称常量
	public static final String LOG_APP_USER = "AppUser"; // 应用程序日志--用户用
	public static final String LOG_APP_DEBUG = "AppDebug"; // 应用程序日志--开发人员用
	public static final String LOG_SECURITY = "Sec"; // 安全日志
	public static final String LOG_DATA = "Data"; // 关键数据修改日志
	public static final String SQL_MSG = "SqlMsg"; // sql信息日志

	/**
	 * 得到logger实例 得到日志信息
	 */
	public static Logger getAppLog() {
		Logger log = Logger.getLogger(LOG_APP_USER);
		return log;
	}

	public static Logger getAppDebugLog() {
		Logger log = Logger.getLogger(LOG_APP_DEBUG);
		return log;
	}

	public static Logger getSecLog() {
		Logger log = Logger.getLogger(LOG_SECURITY);
		return log;
	}

	public static Logger getDataLog() {
		Logger log = Logger.getLogger(LOG_DATA);
		return log;
	}

	public static Logger getSqlLog() {
		Logger log = Logger.getLogger(SQL_MSG);
		return log;
	}

	public static Logger getLog(String moduleName) {
		Logger log = Logger.getLogger(moduleName);
		return log;
	}

}
